﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace MyWCFServices.RealRestaurantService
{
    [DataContract]
    public partial class Arak
    {
        private string p;
        private double p_2;

        //private int _ar;

        [DataMember]
        public string Tetel { get; set; }

        [DataMember]
        public int Ar { get; set; }
        //{
        //    get
        //    {
        //        if (this.Penznem == 0)
        //        {
        //            return this._ar;
        //        }
        //        else
        //        {
        //            return (this._ar / 300);
        //        }
        //    }
        //    set 
        //    {
        //        this._ar = Ar;
        //    }
        //}

        [DataMember]
        public int Penznem { get; set; }


        public Arak(string tetel, int ar)
        {
            this.Tetel = tetel;
            this.Ar = ar;
        }

        public Arak(string tetel, int ar, int penznem)
        {
            this.Tetel = tetel;
            this.Ar = ar;
            this.Penznem = penznem;
        }

        

    }
}
